<!--<?php
if ($action == 'edit') {print <<<EOT
-->
<form action="$basename&action=edit&verify=$posthash" method="post">
<input type="hidden" name="id" value="$id" />
<input type="hidden" name="type" value="$type" />
<input type="hidden" name="step" value="2" />
	<div class="admin_table mb10" style="width:400px">
	<h2 class="h1" onmousedown="read.move(event);" style="cursor:move"><a class="del_img fr" href="javascript:;" onclick="closep();">关闭</a>编辑字段内容</h2>
	<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
if($type == 'plate') {print <<<EOT
-->				
		
		<tr class="tr1 vt">
			<td class="td2">所属区域</td>
			<td class="td2">
				<select name="area">
<!--
EOT;
foreach ($areaList as $key=>$value) {
$selected = $fields['parent'] == $key ? 'selected' : '';
print <<<EOT
-->				
					<option value="$key" $selected>$value[name]</option>
<!--
EOT;
}print <<<EOT
-->						
					
				</select>
			</td>
		</tr>
<!--
EOT;
}print <<<EOT
-->			
		<tr class="tr1 vt">
			<td class="td2">选项名称</td>
			<td class="td2"><input type="text" name="fieldvalue" value="$fields[fieldvalue]" class="input input_wa" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">顺序</td>
			<td class="td2"><input type="text" name="vieworder" value="$fields[vieworder]" class="input input_wa" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">状态</td>
			<td class="td2"><input type="radio" name="ifopen" value="1" $ifopen_Y />启用 <input type="radio" name="ifopen" value="0" $ifopen_N />停用</td>
		</tr>
	</table>
	</div>
	<div class="mb10 tac"><span class="btn2"><span><button type="button" onfocus="blur();" onclick="ajax.submit(this.form)">提 交</button></span></span></div>
</form>
<!--
EOT;
} elseif ($action == 'editarea') {print <<<EOT
-->
<form action="$basename&action=editarea&verify=$posthash" method="post">
<input type="hidden" name="id" value="$id" />
<input type="hidden" name="step" value="2" />
	<div class="admin_table mb10" style="width:400px">
	<h2 class="h1" onmousedown="read.move(event);" style="cursor:move"><a class="del_img fr" href="javascript:;" onclick="closep();">关闭</a>编辑字段内容</h2>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr class="tr1 vt" style="display:none">
			<td class="td2">区域代号</td>
			<td class="td2"><input type="text" name="code" value="$fields[code]" class="input input_wa" /></td>
		</tr><tr class="tr1 vt">
			<td class="td2">区域名称</td>
			<td class="td2"><input type="text" name="name" value="$fields[name]" class="input input_wa" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">状态</td>
			<td class="td2"><input type="radio" name="ifopen" value="1" $ifopen_Y />启用 <input type="radio" name="ifopen" value="0" $ifopen_N />停用</td>
		</tr>
	</table>
	</div>
	<div class="mb10 tac"><span class="btn2"><span><button type="button" onfocus="blur();" onclick="ajax.submit(this.form)">提 交</button></span></span></div>
</form>
<!--
EOT;
} elseif ($action == 'delfield') {print <<<EOT
-->
<form action="$basename&action=operate&verify=$posthash" method="post">
<input type="hidden" name="id" value="$type" />
<input type="hidden" name="step" value="2">
<input type="hidden" name="job" value="del" />
<input type="hidden" name="selid[]" value="$id" />
<div style="width:200px;" class="cc">
	<div class="p10 b f14">确定要删除该选项吗?</div>
	<div class="p10 fr">
	<span class="bt2"><span><button type="submit">删 除</button></span></span>
	<span class="bt2"><span><button type="button" onclick="closep();">取消</button></span></span>
	</div>
</div>
</form>
<!--
EOT;
}?>-->